package com.cxhc.system.service.app.impl;

import java.util.List;
import com.cxhc.common.utils.DateUtils;
import com.cxhc.system.domain.app.RpRoadShop;
import com.cxhc.system.mapper.app.RpRoadShopMapper;
import com.cxhc.system.service.app.IRpRoadShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 沿街店铺检查Service业务层处理
 * 
 * @author Dhq
 * @date 2024-09-23
 */
@Service
public class RpRoadShopServiceImpl implements IRpRoadShopService
{
    @Autowired
    private RpRoadShopMapper rpRoadShopMapper;

    /**
     * 查询沿街店铺检查
     * 
     * @param id 沿街店铺检查主键
     * @return 沿街店铺检查
     */
    @Override
    public RpRoadShop selectRpRoadShopById(Long id)
    {
        return rpRoadShopMapper.selectRpRoadShopById(id);
    }

    /**
     * 查询沿街店铺检查列表
     * 
     * @param rpRoadShop 沿街店铺检查
     * @return 沿街店铺检查
     */
    @Override
    public List<RpRoadShop> selectRpRoadShopList(RpRoadShop rpRoadShop)
    {
        return rpRoadShopMapper.selectRpRoadShopList(rpRoadShop);
    }

    /**
     * 新增沿街店铺检查
     * 
     * @param rpRoadShop 沿街店铺检查
     * @return 结果
     */
    @Override
    public int insertRpRoadShop(RpRoadShop rpRoadShop)
    {
        return rpRoadShopMapper.insertRpRoadShop(rpRoadShop);
    }

    /**
     * 修改沿街店铺检查
     * 
     * @param rpRoadShop 沿街店铺检查
     * @return 结果
     */
    @Override
    public int updateRpRoadShop(RpRoadShop rpRoadShop)
    {
        rpRoadShop.setUpdateTime(DateUtils.dateTimeNow(DateUtils.YYYY_MM_DD_HH_MM_SS));
        return rpRoadShopMapper.updateRpRoadShop(rpRoadShop);
    }

    /**
     * 批量删除沿街店铺检查
     * 
     * @param ids 需要删除的沿街店铺检查主键
     * @return 结果
     */
    @Override
    public int deleteRpRoadShopByIds(Long[] ids)
    {
        return rpRoadShopMapper.deleteRpRoadShopByIds(ids);
    }

    /**
     * 删除沿街店铺检查信息
     * 
     * @param id 沿街店铺检查主键
     * @return 结果
     */
    @Override
    public int deleteRpRoadShopById(Long id)
    {
        return rpRoadShopMapper.deleteRpRoadShopById(id);
    }
}
